package com.yjd.bi.report.enums;

/**
 * <b>description</b>：业务库变更记录装，将其转移至bi库之后，数据状态变为处理成功 <br>
 * <b>time</b>：2016-4-11下午5:28:40 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum BiEtlFromtableTotableIsActivieEnum {
	NO(0, "待处理"), YES(1, "处理成功");

	private Integer value;
	private String description;

	private BiEtlFromtableTotableIsActivieEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static BiEtlFromtableTotableIsActivieEnum get(Integer value) {
		BiEtlFromtableTotableIsActivieEnum[] enums = BiEtlFromtableTotableIsActivieEnum
				.values();
		for (BiEtlFromtableTotableIsActivieEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		BiEtlFromtableTotableIsActivieEnum enum1 = BiEtlFromtableTotableIsActivieEnum
				.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
}
